public class Client {
    public static void main(String[] args) {
        //创建WeatherData天气数据对象
        WeatherData weatherData = new WeatherData();

        //创建观察者
        Observer observer1 = new Baidu();
        Observer observer2 = new xinlang();

        //注册观察者
        weatherData.registerObserver(observer1);
        weatherData.registerObserver(observer2);

        //天文台数据改变
        weatherData.setWeatherData(30,150,60);

    }
}
